<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MuPDFCore: MuPDFCore.Rectangle Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="Doxy.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="icon.svg"/></td>
  <td id="projectalign">
   <div id="projectname">MuPDFCore<span id="projectnumber">&#160;1.6.0</span>
   </div>
   <div id="projectbrief">Multiplatform .NET bindings for MuPDF</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('struct_mu_p_d_f_core_1_1_rectangle.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="struct_mu_p_d_f_core_1_1_rectangle-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">MuPDFCore.Rectangle Struct Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Represents a rectangle.  
 <a href="struct_mu_p_d_f_core_1_1_rectangle.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4bd91e5c1be8e68b552c5b7862a18ed2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html#a4bd91e5c1be8e68b552c5b7862a18ed2">Rectangle</a> (float x0, float y0, float x1, float y1)</td></tr>
<tr class="memdesc:a4bd91e5c1be8e68b552c5b7862a18ed2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> from the specified coordinates.  <a href="struct_mu_p_d_f_core_1_1_rectangle.html#a4bd91e5c1be8e68b552c5b7862a18ed2">More...</a><br /></td></tr>
<tr class="separator:a4bd91e5c1be8e68b552c5b7862a18ed2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad920693671eacccb4549bb789ab22455"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html#ad920693671eacccb4549bb789ab22455">Rectangle</a> (double x0, double y0, double x1, double y1)</td></tr>
<tr class="memdesc:ad920693671eacccb4549bb789ab22455"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> from the specified coordinates.  <a href="struct_mu_p_d_f_core_1_1_rectangle.html#ad920693671eacccb4549bb789ab22455">More...</a><br /></td></tr>
<tr class="separator:ad920693671eacccb4549bb789ab22455"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27cf4d4747a8677f8103746ee3386595"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html">RoundedRectangle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html#a27cf4d4747a8677f8103746ee3386595">Round</a> ()</td></tr>
<tr class="memdesc:a27cf4d4747a8677f8103746ee3386595"><td class="mdescLeft">&#160;</td><td class="mdescRight">Round the rectangle's coordinates to the closest integers.  <a href="struct_mu_p_d_f_core_1_1_rectangle.html#a27cf4d4747a8677f8103746ee3386595">More...</a><br /></td></tr>
<tr class="separator:a27cf4d4747a8677f8103746ee3386595"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a19da84939597bccb8a9aea6a3f6a3a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html">RoundedRectangle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html#a5a19da84939597bccb8a9aea6a3f6a3a">Round</a> (double zoom)</td></tr>
<tr class="memdesc:a5a19da84939597bccb8a9aea6a3f6a3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Round the rectangle's coordinates to the closest integers, applying the specified zoom factor.  <a href="struct_mu_p_d_f_core_1_1_rectangle.html#a5a19da84939597bccb8a9aea6a3f6a3a">More...</a><br /></td></tr>
<tr class="separator:a5a19da84939597bccb8a9aea6a3f6a3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbdaf8ee995b42c7c710d32c74f65f5f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html">Rectangle</a>[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html#adbdaf8ee995b42c7c710d32c74f65f5f">Split</a> (int divisions)</td></tr>
<tr class="memdesc:adbdaf8ee995b42c7c710d32c74f65f5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Split the rectangle into the specified number of <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>s.  <a href="struct_mu_p_d_f_core_1_1_rectangle.html#adbdaf8ee995b42c7c710d32c74f65f5f">More...</a><br /></td></tr>
<tr class="separator:adbdaf8ee995b42c7c710d32c74f65f5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a579ccfbef0ff2313a7201eedc9b6a929"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html">Rectangle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html#a579ccfbef0ff2313a7201eedc9b6a929">Intersect</a> (<a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html">Rectangle</a> other)</td></tr>
<tr class="memdesc:a579ccfbef0ff2313a7201eedc9b6a929"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the intersection between this <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> and another one.  <a href="struct_mu_p_d_f_core_1_1_rectangle.html#a579ccfbef0ff2313a7201eedc9b6a929">More...</a><br /></td></tr>
<tr class="separator:a579ccfbef0ff2313a7201eedc9b6a929"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97842838a1c0ae3857c6b64594e87e8f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html#a97842838a1c0ae3857c6b64594e87e8f">Contains</a> (<a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html">Rectangle</a> other)</td></tr>
<tr class="memdesc:a97842838a1c0ae3857c6b64594e87e8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether this <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> contains another <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>.  <a href="struct_mu_p_d_f_core_1_1_rectangle.html#a97842838a1c0ae3857c6b64594e87e8f">More...</a><br /></td></tr>
<tr class="separator:a97842838a1c0ae3857c6b64594e87e8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a366b19d137eb03af16171774d19fc569"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html#a366b19d137eb03af16171774d19fc569">Contains</a> (<a class="el" href="struct_mu_p_d_f_core_1_1_point_f.html">PointF</a> point)</td></tr>
<tr class="memdesc:a366b19d137eb03af16171774d19fc569"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether this <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> contains a <a class="el" href="struct_mu_p_d_f_core_1_1_point_f.html" title="Represents a point.">PointF</a>.  <a href="struct_mu_p_d_f_core_1_1_rectangle.html#a366b19d137eb03af16171774d19fc569">More...</a><br /></td></tr>
<tr class="separator:a366b19d137eb03af16171774d19fc569"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cca22619e463c55bc8ecc9062b8e569"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_mu_p_d_f_core_1_1_quad.html">Quad</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html#a2cca22619e463c55bc8ecc9062b8e569">ToQuad</a> ()</td></tr>
<tr class="memdesc:a2cca22619e463c55bc8ecc9062b8e569"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts the <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> to a <a class="el" href="struct_mu_p_d_f_core_1_1_quad.html" title="Represents a quadrilater (not necessarily a rectangle).">Quad</a>.  <a href="struct_mu_p_d_f_core_1_1_rectangle.html#a2cca22619e463c55bc8ecc9062b8e569">More...</a><br /></td></tr>
<tr class="separator:a2cca22619e463c55bc8ecc9062b8e569"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a7cc750e4547b99f89a6427ab86b99fb3"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html#a7cc750e4547b99f89a6427ab86b99fb3">X0</a></td></tr>
<tr class="memdesc:a7cc750e4547b99f89a6427ab86b99fb3"><td class="mdescLeft">&#160;</td><td class="mdescRight">The left coordinate of the rectangle.  <a href="struct_mu_p_d_f_core_1_1_rectangle.html#a7cc750e4547b99f89a6427ab86b99fb3">More...</a><br /></td></tr>
<tr class="separator:a7cc750e4547b99f89a6427ab86b99fb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e3466975ea3adbd9ab7a6920247170b"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html#a5e3466975ea3adbd9ab7a6920247170b">Y0</a></td></tr>
<tr class="memdesc:a5e3466975ea3adbd9ab7a6920247170b"><td class="mdescLeft">&#160;</td><td class="mdescRight">The top coordinate of the rectangle.  <a href="struct_mu_p_d_f_core_1_1_rectangle.html#a5e3466975ea3adbd9ab7a6920247170b">More...</a><br /></td></tr>
<tr class="separator:a5e3466975ea3adbd9ab7a6920247170b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69c99f6aaf6cfa3ca52a9aab45fb06a0"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html#a69c99f6aaf6cfa3ca52a9aab45fb06a0">X1</a></td></tr>
<tr class="memdesc:a69c99f6aaf6cfa3ca52a9aab45fb06a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">The right coordinate of the rectangle.  <a href="struct_mu_p_d_f_core_1_1_rectangle.html#a69c99f6aaf6cfa3ca52a9aab45fb06a0">More...</a><br /></td></tr>
<tr class="separator:a69c99f6aaf6cfa3ca52a9aab45fb06a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca202ae10d09cc9307a57e3c8f206bed"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html#aca202ae10d09cc9307a57e3c8f206bed">Y1</a></td></tr>
<tr class="memdesc:aca202ae10d09cc9307a57e3c8f206bed"><td class="mdescLeft">&#160;</td><td class="mdescRight">The bottom coordinate of the rectangle.  <a href="struct_mu_p_d_f_core_1_1_rectangle.html#aca202ae10d09cc9307a57e3c8f206bed">More...</a><br /></td></tr>
<tr class="separator:aca202ae10d09cc9307a57e3c8f206bed"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a4ea4052094e051b974b7ca1bc9346655"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html#a4ea4052094e051b974b7ca1bc9346655">Width</a><code> [get]</code></td></tr>
<tr class="memdesc:a4ea4052094e051b974b7ca1bc9346655"><td class="mdescLeft">&#160;</td><td class="mdescRight">The width of the rectangle.  <a href="struct_mu_p_d_f_core_1_1_rectangle.html#a4ea4052094e051b974b7ca1bc9346655">More...</a><br /></td></tr>
<tr class="separator:a4ea4052094e051b974b7ca1bc9346655"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a06dd7d57268bdf22b5ce741b9dbf4e"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html#a5a06dd7d57268bdf22b5ce741b9dbf4e">Height</a><code> [get]</code></td></tr>
<tr class="memdesc:a5a06dd7d57268bdf22b5ce741b9dbf4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The height of the rectangle.  <a href="struct_mu_p_d_f_core_1_1_rectangle.html#a5a06dd7d57268bdf22b5ce741b9dbf4e">More...</a><br /></td></tr>
<tr class="separator:a5a06dd7d57268bdf22b5ce741b9dbf4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Represents a rectangle. </p>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00326">326</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a4bd91e5c1be8e68b552c5b7862a18ed2" name="a4bd91e5c1be8e68b552c5b7862a18ed2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4bd91e5c1be8e68b552c5b7862a18ed2">&#9670;&nbsp;</a></span>Rectangle() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MuPDFCore.Rectangle.Rectangle </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>y0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>y1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> from the specified coordinates. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x0</td><td>The left coordinate of the rectangle.</td></tr>
    <tr><td class="paramname">y0</td><td>The top coordinate of the rectangle.</td></tr>
    <tr><td class="paramname">x1</td><td>The right coordinate of the rectangle.</td></tr>
    <tr><td class="paramname">y1</td><td>The bottom coordinate of the rectangle.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00365">365</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<a id="ad920693671eacccb4549bb789ab22455" name="ad920693671eacccb4549bb789ab22455"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad920693671eacccb4549bb789ab22455">&#9670;&nbsp;</a></span>Rectangle() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MuPDFCore.Rectangle.Rectangle </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> from the specified coordinates. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x0</td><td>The left coordinate of the rectangle.</td></tr>
    <tr><td class="paramname">y0</td><td>The top coordinate of the rectangle.</td></tr>
    <tr><td class="paramname">x1</td><td>The right coordinate of the rectangle.</td></tr>
    <tr><td class="paramname">y1</td><td>The bottom coordinate of the rectangle.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00380">380</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a366b19d137eb03af16171774d19fc569" name="a366b19d137eb03af16171774d19fc569"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a366b19d137eb03af16171774d19fc569">&#9670;&nbsp;</a></span>Contains() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool MuPDFCore.Rectangle.Contains </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_mu_p_d_f_core_1_1_point_f.html">PointF</a>&#160;</td>
          <td class="paramname"><em>point</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks whether this <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> contains a <a class="el" href="struct_mu_p_d_f_core_1_1_point_f.html" title="Represents a point.">PointF</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">point</td><td>The <a class="el" href="struct_mu_p_d_f_core_1_1_point_f.html" title="Represents a point.">PointF</a> to check.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A boolean value indicating whether this <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> contains the <em>point</em> .</dd></dl>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00476">476</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<a id="a97842838a1c0ae3857c6b64594e87e8f" name="a97842838a1c0ae3857c6b64594e87e8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97842838a1c0ae3857c6b64594e87e8f">&#9670;&nbsp;</a></span>Contains() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool MuPDFCore.Rectangle.Contains </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html">Rectangle</a>&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks whether this <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> contains another <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>The <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> to check.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A boolean value indicating whether this <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> contains the <em>other</em>  <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00466">466</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<a id="a579ccfbef0ff2313a7201eedc9b6a929" name="a579ccfbef0ff2313a7201eedc9b6a929"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a579ccfbef0ff2313a7201eedc9b6a929">&#9670;&nbsp;</a></span>Intersect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html">Rectangle</a> MuPDFCore.Rectangle.Intersect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html">Rectangle</a>&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Compute the intersection between this <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> and another one. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>The other <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> to intersect with this instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The intersection between the two <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>s.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00443">443</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<a id="a27cf4d4747a8677f8103746ee3386595" name="a27cf4d4747a8677f8103746ee3386595"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27cf4d4747a8677f8103746ee3386595">&#9670;&nbsp;</a></span>Round() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html">RoundedRectangle</a> MuPDFCore.Rectangle.Round </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Round the rectangle's coordinates to the closest integers. </p>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html" title="Represents a rectangle using only integer numbers.">RoundedRectangle</a> with the rounded coordinates.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00392">392</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<a id="a5a19da84939597bccb8a9aea6a3f6a3a" name="a5a19da84939597bccb8a9aea6a3f6a3a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a19da84939597bccb8a9aea6a3f6a3a">&#9670;&nbsp;</a></span>Round() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html">RoundedRectangle</a> MuPDFCore.Rectangle.Round </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>zoom</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Round the rectangle's coordinates to the closest integers, applying the specified zoom factor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">zoom</td><td>The zoom factor to apply.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html" title="Represents a rectangle using only integer numbers.">RoundedRectangle</a> with the rounded coordinates.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00407">407</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<a id="adbdaf8ee995b42c7c710d32c74f65f5f" name="adbdaf8ee995b42c7c710d32c74f65f5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adbdaf8ee995b42c7c710d32c74f65f5f">&#9670;&nbsp;</a></span>Split()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html">Rectangle</a>[] MuPDFCore.Rectangle.Split </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>divisions</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Split the rectangle into the specified number of <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>s. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">divisions</td><td>The number of rectangles in which the rectangle should be split. This must be factorisable using only powers of 2, 3, 5 or 7. Otherwise, the biggest number smaller than <em>divisions</em>  that satisfies this condition is used.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An array of <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>s that when positioned properly cover the same area as this object.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00422">422</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<a id="a2cca22619e463c55bc8ecc9062b8e569" name="a2cca22619e463c55bc8ecc9062b8e569"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2cca22619e463c55bc8ecc9062b8e569">&#9670;&nbsp;</a></span>ToQuad()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_mu_p_d_f_core_1_1_quad.html">Quad</a> MuPDFCore.Rectangle.ToQuad </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts the <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> to a <a class="el" href="struct_mu_p_d_f_core_1_1_quad.html" title="Represents a quadrilater (not necessarily a rectangle).">Quad</a>. </p>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_mu_p_d_f_core_1_1_quad.html" title="Represents a quadrilater (not necessarily a rectangle).">Quad</a> corresponding to the current <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00485">485</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a7cc750e4547b99f89a6427ab86b99fb3" name="a7cc750e4547b99f89a6427ab86b99fb3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7cc750e4547b99f89a6427ab86b99fb3">&#9670;&nbsp;</a></span>X0</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float MuPDFCore.Rectangle.X0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The left coordinate of the rectangle. </p>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00331">331</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<a id="a69c99f6aaf6cfa3ca52a9aab45fb06a0" name="a69c99f6aaf6cfa3ca52a9aab45fb06a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69c99f6aaf6cfa3ca52a9aab45fb06a0">&#9670;&nbsp;</a></span>X1</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float MuPDFCore.Rectangle.X1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The right coordinate of the rectangle. </p>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00341">341</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<a id="a5e3466975ea3adbd9ab7a6920247170b" name="a5e3466975ea3adbd9ab7a6920247170b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e3466975ea3adbd9ab7a6920247170b">&#9670;&nbsp;</a></span>Y0</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float MuPDFCore.Rectangle.Y0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The top coordinate of the rectangle. </p>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00336">336</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<a id="aca202ae10d09cc9307a57e3c8f206bed" name="aca202ae10d09cc9307a57e3c8f206bed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca202ae10d09cc9307a57e3c8f206bed">&#9670;&nbsp;</a></span>Y1</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float MuPDFCore.Rectangle.Y1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The bottom coordinate of the rectangle. </p>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00346">346</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a id="a5a06dd7d57268bdf22b5ce741b9dbf4e" name="a5a06dd7d57268bdf22b5ce741b9dbf4e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a06dd7d57268bdf22b5ce741b9dbf4e">&#9670;&nbsp;</a></span>Height</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float MuPDFCore.Rectangle.Height</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The height of the rectangle. </p>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00356">356</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<a id="a4ea4052094e051b974b7ca1bc9346655" name="a4ea4052094e051b974b7ca1bc9346655"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ea4052094e051b974b7ca1bc9346655">&#9670;&nbsp;</a></span>Width</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float MuPDFCore.Rectangle.Width</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The width of the rectangle. </p>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00351">351</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>MuPDFCore/<a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_mu_p_d_f_core.html">MuPDFCore</a></li><li class="navelem"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html">Rectangle</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4 </li>
  </ul>
</div>
</body>
</html>
